package com.parkwalk.xxx;

import javax.swing.SwingUtilities;
import javax.swing.ToolTipManager;

/**
 * @author borball
 * @date 2012-4-29
 * 
 */
public class AppStart {

	public static void main(String[] args) {

		System.setProperty("sun.java2d.noddraw", "true");
		ToolTipManager.sharedInstance().setInitialDelay(200);
//		UIUtil.setPopupMenuConsumeEventOnClose(false);
//		UIUtil.initToolTipForSystemStyle();
//		UIUtil.hideInputRect();

		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				new AppStart();
			}
		});
	}

	public AppStart() {
		if (isFirstTimeUse()) {
			register();
		} else {
			loginFromHistory();
		}
	}

	private void loginFromHistory() {
		new LoginFrame();
	}

	private void register() {
		// TODO Auto-generated method stub

	}

	private boolean isFirstTimeUse() {
		return false;
	}

}
